package com.tcm.user.service;


import com.base.core.exception.ServiceException;
import com.base.core.utils.R;
import com.tcm.user.model.query.LoginAuthQuery;
import com.tcm.user.model.entity.LoginAuth;

import java.util.List;

public interface UserService {
    R save(LoginAuth loginAuth) throws ServiceException;

    R update(LoginAuth loginAuth) throws ServiceException, Exception;

    R findByUsername(String identifier, String clientType);

    R findByMobile(String mobile, String clientType);

    R queryByMobile(List<String> mobileList, String clientType);

    R findByUserId(Long userId, String clientType);

    R changeCredential(LoginAuthQuery userParams);

    R changeUsername(LoginAuthQuery userParams);

    R changeMobile(LoginAuthQuery userParams);

    R queryUser(LoginAuthQuery loginAuthQuery) throws ServiceException;
}
